import request from '@/utils/request';

// 查询【请填写功能名称】列表
export function listFinance(params) {
	return request({
		url: '/pc/api/finance/list',
		method: 'get',
		params,
	});
}

// 查询【请填写功能名称】详细
export function getFinance(id) {
	return request({
		url: '/pc/api/finance/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增【请填写功能名称】
export function addFinance(data) {
	return request({
		url: '/pc/api/finance/add',
		method: 'post',
		data: data,
	});
}

// 编辑【请填写功能名称】
export function updateFinance(data) {
	return request({
		url: '/pc/api/finance/edit',
		method: 'post',
		data: data,
	});
}

// 删除【请填写功能名称】
export function delFinance(id) {
	return request({
		url: '/system/finance/remove',
		method: 'post',
		data: id,
	});
}

// 导出【请填写功能名称】
export function exportFinance(query) {
	return request({
		url: '/system/finance/export',
		method: 'post',
		params: query,
	});
}

export function managementList(query) {
	return request({
		url: '/mall/management/list',
		method: 'post',
		data: query,
	});
}
export function managementListExport(query) {
	return request({
		url: '/mall/management/export',
		method: 'post',
		data: query,
	});
}

export function listStatistics(query) {
	return request({
		url: '/mall/management/listStatistics',
		method: 'post',
		data: query,
	});
}
